﻿using AbpDemo.Roles.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace AbpDemo.Roles
{
    public interface IRoleService: ICrudAppExtService<RoleDto, Guid, CreateUpdateRoleDto>
    {
        /// <summary>
        /// 获取当前用户具有的权限Id
        /// </summary>
        /// <returns></returns>

        Task<ResultDto<List<Guid>>> GetTreeIds(Guid RoleId);

        /// <summary>
        /// 设置权限
        /// </summary>
        /// <param name="RoleId"></param>
        /// <param name="MenuIds"></param>
        /// <returns></returns>
        Task<ResultDto<bool>> SetPermission(Guid RoleId,List<Guid> MenuIds);
    }
}
